<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.anhry.app.safety.util.Util"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>个人提醒管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/check_jquery.js"></script>
	<script src="<%=basePath%>/js/oa.js" type="text/javascript"></script>
   	<script type="text/javascript" src="<%=basePath%>/js/dbdialog/lhgdialog.min.js<%=Util.LHGDIALOG%>"></script>
	<script src="<%=basePath%>/js/table.js" type="text/javascript"></script>
	<script src="<%=basePath%>/js/checkbox1.js" type="text/javascript"></script>
	<script type="text/javascript" src="<%=path%>/js/My97DatePicker/WdatePicker.js" defer="defer"></script><base target="_self" />
	
  </head>
  
  <body>
  	<div class="body-box">
  		<div class="map">
			<div class="map_con">
				您当前的位置：系统提醒 &gt; 个人提醒管理&gt; 提醒列表
			</div>
		</div>
		<div id="container">			
			<div class="top_search">
			    <fieldset>
				    <legend>
				  		<div class="search">查询条件</div>
				  	</legend>
				    <form action="<%=basePath%>/oa/call_perCallList.action?search=1" method="post">
				    	<input type="hidden" name="forward" value="0">
				    	<input type="hidden" name="isSends" value="0">
<%--				    	是否发送：<s:select list="#{0:'未发送',1:'已发送'}" listKey="key" listValue="value" headerKey="" headerValue="==请选择==" name="isSends" theme="simple"></s:select>--%>
				    	提醒时间：<input name="beginTime" id="time1" class="Wdate" type="text" value="${beginTime }" readonly="readonly" onClick="WdatePicker({maxDate:'#F{$dp.$D(\'time2\')}'})"/>--<input name="endTime" id="time2" class="Wdate" readonly="readonly" type="text" value="${endTime }" onClick="WdatePicker({minDate:'#F{$dp.$D(\'time1\')}'})"/>				    	
				    	提醒内容：<input type="text" name="keyWord" value="${keyWord}">
				    	<input type="submit" value="搜 索" class="link_input" name="btnsx">
				    </form>
				</fieldset>
			</div>			
		    <table border="0" cellpadding="0" cellspacing="0" class="mytable">
		    	 <tr class="fixedHeaderTr">
		    		<th width="5%">选择</th>
		    		<th width="5%">序列</th>
		    		<th width="45%">提醒内容</th>
		    		<th width="10%">提醒时间</th>	    		
		    		<th width="10%">提醒机制</th>	    		
		    		<th width="10%">提醒次数</th>	    		
		    		<th width="10%">提醒间隔时间</th>	    			    		
		    		<th width="5%">操作 </th>	    		
		    	</tr>
		    	<s:if test="%{perCallList.size>0}">
		    		<s:iterator value="perCallList" id="call" status="x">
				    	<tr>
				    		<td align="center"><input type="checkbox" name="ids" value="${call.id }"/> </td>			    		
				    		<td align="center">${x.index+1+(page.num-1)*page.size}</td>			    		
				    		<td align="center"><a href="<%=basePath%>/oa/call_perCallShow.action?id=${call.id}&keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }&forward=${forward }&isSends=${isSends }&num=${page.num }&size=${page.size}&forType=0">${call.callContent}</a></td>
				    		<td align="center"><s:date name="#call.callTime" format="yyyy-MM-dd HH:mm"/> </td>				    		
				    		<td align="center">
				    			<s:if test="%{#call.callType==0}">消息</s:if>
								<s:elseif test="%{#call.callType==1}">手机短信</s:elseif>
								<s:elseif test="%{#call.callType==2}">消息+手机短信</s:elseif>
				    		</td>				    		
				    		<td align="center">${call.callNums }</td>				    		
				    		<td align="center">${call.callAtTime }</td>
				    		<td align="center"><a href="<%=basePath%>/oa/call_perCallShow.action?id=${call.id}&keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }&forward=0&isSends=${isSends }&num=${page.num }&size=${page.size}&forType=1">修改</a></td>				    		
				    	</tr>
		    		</s:iterator>
			    </s:if>
			    <s:else>
			    	<tr><td colspan="9">没有数据</td></tr>
			    </s:else>
		    </table>
			   
		    <div class="btn_page">
				<input type="button" class="link_input" value="新提醒设置" onclick="window.location.href='<%=basePath%>/oa/call_toPerCallUp.action?keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }&forward=0&str_num=${page.num }&str_size=${page.size}'"/>	
		    	<input type="button" name="button5" value=" 全 选 " onclick="selectAll('ids');" class="link_input">
				<input type="button" name="button4" value=" 反 选 " onclick="selectReverse('ids');" class="link_input">
				<input type="button" name="button3" value=" 清 空 " onclick="clearAll('ids');" class="link_input">
				<input type="button" name="button2" value=" 删 除 " onclick="dAll('ids','<%=basePath%>/oa/call_callDele.action?keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }&forward=0&isSend=${isSend }&num=${page.num }&size=${page.size }&ids=',2);" class="link_input">
		    </div>	    
		    
		    <div class="page">
		    	<jsp:include flush="true" page="../share/fenye.jsp">
				    <jsp:param name="url4page" value="/oa/call_perCallList.action?keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }&forward=0&isSends=${isSends }" />
			    </jsp:include>
		    </div>	
		</div>
	</div>
  </body>
  <s:if test="%{tip!=null}">
	   <input type="hidden" name="tip" id="tip" value="${tip}">
	   <script type="text/javascript">
	        alert(document.getElementById("tip").value);
	      </script>
	</s:if>
</html>
